import request from '@/utils/request'

// 查询登记管理列表
export function listPhysicalregister(query) {
  return request({
    url: '/business/physicalregister/list',
    method: 'get',
    params: query
  })
}

// 查询登记管理详细
export function getPhysicalregister(id) {
  return request({
    url: '/business/physicalregister/' + id,
    method: 'get'
  })
}
// 输入身份证获取信息
export function getRegisterInfo(id) {
  return request({
    url: '/physical/physicalregister/getRegisterInfo/'+ id,
    method: 'get'
  })
}
//通过体检编号查询人员信息
export function getRegisterInfoByVid(vid) {
  return request({
    url: '/physical/physicalregister/getRegisterInfobyVid/'+ vid,
    method: 'get'
  })
}
//校验体检编号
export function checkregisterInfoByVid(vid) {
  return request({
    url: '/physical/physicalregister/checkregisterInfoByVid/'+ vid,
    method: 'get'
  })
}
//修改信息
export function reRegisterInfo(data) {
  return request({
    url: '/physical/physicalregister/ReRegisterInfo',
    method: 'post',
    data: data
  })
}
//保存信息
export function savePhysical(data) {
  return request({
    url: '/physical/physicalregister/SavePhysical',
    method: 'post',
    data: data
  })
}
// 新增登记管理
export function addPhysicalregister(data) {
  return request({
    url: '/business/physicalregister',
    method: 'post',
    data: data
  })
}
// 保存登记管理
export function savePhysicalregister(data) {
  return request({
    url: '/business/physicalregister/save',
    method: 'post',
    data: data
  })
}

// 修改登记管理
export function updatePhysicalregister(data) {
  return request({
    url: '/business/physicalregister',
    method: 'put',
    data: data
  })
}

// 删除登记管理
export function delPhysicalregister(id) {
  return request({
    url: '/business/physicalregister/' + id,
    method: 'delete'
  })
}
